package creational.factory.simplefactory;

import creational.factory.DataBaseDialect;

/**
 * @Description: 测试类
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class SimpleFactoryTest {

    public static void main(String[] args) {
        DataBaseDialect mysqlDialect = SimpleFactory.getDialect("mysql");
        String sql = mysqlDialect.getCountRowsSql("hub", "", "hub_sys_menu");
        System.out.println(sql);

        DataBaseDialect pgDialect = SimpleFactory.getDialect("postgresql");
        String psql = pgDialect.getCountRowsSql("", "public", "DIC_INFO");
        System.out.println(psql);
    }
}
